import request from "@/utils/request";
const BASE_URL = "/flow/tasks";

// 获得列表
export function queryList(query) {
    return request({
        url: BASE_URL,
        method: "get",
        params: query,
    });
}
// 流程通过
export function doComplete(data) {
    return request({
        url: BASE_URL + '/complete',
        method: "post",
        data: data,
    });
}
// 流程驳回
export function doReject(data) {
    return request({
        url: BASE_URL + '/reject',
        method: "post",
        data: data,
    });
}

export default {
    queryList,
    doComplete,
    doReject
}